home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / Shout3d_runtime / codebase / models / chooseTwoTextures.wrl < prev    next >
Text File  |  2000-07-07  |  701b  |  22 lines

  1. #VRML V2.0 utf8
  2.  
  3. Switch {
  4.     whichChoice -1
  5.     choice [        DEF TEX_1 ImageTexture { url "images/shared/sky.gif" }        DEF TEX_2 ImageTexture { url "images/shared/round_fake_shadow.jpg" }
  6.     ]}
  7. Transform {
  8.     children     Shape {
  9.         appearance    DEF MY_APPEARANCE Appearance {
  10.             material    Material { diffuseColor 1 1 1 }
  11.         }
  12.         geometry    IndexedFaceSet {
  13.             coord    Coordinate {
  14.                 point    [ -1 1 1, -1 -1 1, 1 1 1, 1 -1 1 ]
  15.             }
  16.             texCoord    TextureCoordinate {
  17.                 point    [ -1 -1, -1 1, 1 1, 1 -1 ]
  18.             }
  19.             coordIndex    [ 0, 1, 3, 2, -1]
  20.             texCoordIndex    [ 0, 1, 2, 3, -1 ]        }    }
  21. }
  22.